package com.kgis.fm.platform.model.metadata;

import com.kgis.kp.model.LifecycleModel;

/**
 * 设施组件关系
 * 
 * @author zhxiaomiao
 * @version
 */
public class FeatureComponent extends LifecycleModel{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private int id;
	private int fno;
	private int cno;
	/**
	 * 是否必须组件
	 */
	private boolean isRequired;
	/**
	 * 是否可重复
	 */
	private boolean isRepeating;
	/**
	 * 是否自动重复
	 */
	private boolean isAutorepeat;
	private int ordinal;

	public int getFno() {
		return fno;
	}

	public void setFno(int fno) {
		this.fno = fno;
	}

	public int getCno() {
		return cno;
	}

	public void setCno(int cno) {
		this.cno = cno;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public boolean isRequired() {
		return isRequired;
	}

	public void setRequired(boolean isRequired) {
		this.isRequired = isRequired;
	}

	public boolean isRepeating() {
		return isRepeating;
	}

	public void setRepeating(boolean isRepeating) {
		this.isRepeating = isRepeating;
	}

	public boolean isAutorepeat() {
		return isAutorepeat;
	}

	public void setAutorepeat(boolean isAutorepeat) {
		this.isAutorepeat = isAutorepeat;
	}

	public int getOrdinal() {
		return ordinal;
	}

	public void setOrdinal(int ordinal) {
		this.ordinal = ordinal;
	}

	@Override
	public String toString() {
		return "FeatureComponent [fno=" + fno + ", cno=" + cno + "]";
	}

}
